<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>倒计时</title>
  <style>
    .container{
      width: 300px;
      height: 300px;
      background-color: #eee;
      padding: 20px;
      margin: 0 auto;
    }
    button{
      width: 80px;
      height: 40px;
      margin: 20px;
    }
  </style>
</head>
<body>
  <div class="container">
    <p>神秀博客</p>
    <p>超多学习资源和笔记</p>
    <P>售价: 0.99元</P>
    <p>
      <button class="cancel">取消</button>
      <button class="pay">支付</button>
    </p>
  </div>

  <script>
    document.querySelector('.cancel').onclick = function(){
      console.log('cancel')
    }
    document.querySelector('.pay').onclick = function(){
      let res = confirm("你确定要支付吗?")
      if(res){
        location.href = './支付成功.html'
      }
    }
  </script>
</body>
</html>